package me.xingyannian.zhaopin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * HandleErrorController 处理错误
 *
 * @author XING&WANG
 * @version 2025/05/04 09:27
 **/
@Controller
@RequestMapping("/handleError")
public class ErrorController {
    // 错误处理逻辑
    @RequestMapping("")
    public String handleError(Model model, @RequestParam String errorMsg) {
        model.addAttribute("errorMsg", errorMsg);
        return "error";
    }
}
